<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
	<link rel="icon" type="image/ico" href="../deng/images/icons/system.png" />
	<head th:include="include/includeboot:: header"></head>
	<title>编辑管理</title>
</head>
<body>
<div class="m-portlet">
	<div class="m-portlet__head">
		<div class="m-portlet__head-caption">
			<div class="m-portlet__head-title">
					<span class="m-portlet__head-icon m--hide">
					<i class="la la-gear"></i>
					</span>
				<h3 class="m-portlet__head-text">
					编辑文件路径
				</h3>
			</div>
		</div>
	</div>
	<!--begin::Form-->
	<form class="m-form m-form--fit m-form--label-align-left m-form--group-seperator-dashed" id="defaultForm" method="post">
		<div class="m-portlet__body">
			<div class="form-group" style="display:none;">
				<label class="col-lg-3 control-label">脚本编号</label>
				<div class="col-lg-6">
					<input class="form-control" type="hidden" th:value="${xt_script_id}" id="xt_script_id" name="xt_script_id" placeholder="请输入脚本编号">
				</div>
			</div>
			<div class="form-group m-form__group row">
				<label class="col-lg-3 control-label">标题</label>
				<div class="col-lg-6">
					<input class="form-control" type="text" maxlength="100" id="xt_script_title" name="xt_script_title" placeholder="请输入标题" >
				</div>
			</div>
			<div class="form-group m-form__group row">
				<label class="col-lg-3 control-label">脚本键</label>
				<div class="col-lg-6">
					<input class="form-control" type="text" maxlength="200"  data-bv-notempty data-bv-notempty-message="请输入脚本键" id="xt_script_key" name="xt_script_key" placeholder="请输入脚本键" >
				</div>
			</div>
			<div class="form-group m-form__group row">
				<label class="col-lg-3 control-label">脚本内容</label>
				<div class="col-lg-6">
					<textarea class="form-control" maxlength="65535" id="xt_script_text" placeholder="请输入脚本内容"></textarea>
				</div>
			</div>
			<div class="form-group m-form__group row">
				<label class="col-lg-3 control-label">脚本类型</label>
				<div class="col-lg-6">
					<select class="form-control" id="xt_script_type" name="xt_script_type" placeholder="请选择">
						<option value="">请选择</option>
						<option value="1">javaScript</option>
						<option value="2">Sql</option>
						<option value="3">html</option>
						<option value="4">其他</option>
					</select>
				</div>
			</div>
			<div class="form-group m-form__group row">
				<label class="col-lg-3 control-label">状态</label>
				<div class="col-lg-6">
					<select class="form-control" id="xt_script_status" name="xt_script_status" placeholder="请选择">
						<option value="">请选择</option>
						<option value="0">正常</option>
						<option value="1">禁用</option>
					</select>
				</div>
			</div>
			<div class="form-group m-form__group row">
				<label class="col-lg-3 control-label">描述</label>
				<div class="col-lg-6">
					<textarea class="form-control" maxlength="800" id="xt_script_content" name="xt_script_content" placeholder="请输入描述"></textarea>
				</div>
			</div>
			<div class="form-group m-form__group row">
				<label class="col-lg-3 control-label">是否参与代码生成器查询配置</label>
				<div class="col-lg-6">
					<select class="form-control" id="xt_script_search_filed" name="xt_script_search_filed" placeholder="请选择">
						<option value=""><option>
						<option value="0">是</option>
						<option value="1">否</option>
					</select>
				</div>
			</div>
			<div class="form-group m-form__group row">
				<label class="col-lg-3 control-label">下拉框真实值</label>
				<div class="col-lg-6">
					<input class="form-control" type="text" maxlength="100" id="xt_script_valuefield" name="xt_script_valuefield" placeholder="请输入下拉框真实值">
				</div>
			</div>
			<div class="form-group m-form__group row">
				<label class="col-lg-3 control-label">下拉框显示值</label>
				<div class="col-lg-6">
					<input class="form-control" type="text" maxlength="100" id="xt_script_displayfield" name="xt_script_displayfield" placeholder="请输入下拉框显示值">
				</div>
			</div>
		</div>
		<div class="m-portlet__foot m-portlet__foot--fit">
			<div class="m-form__actions m-form__actions--right">
				<div class="row">
					<div class="col m--align-left">
						<button type="button" class="btn btn-success m-btn m-btn--icon" onclick="updateXtScript()">
							<span>
								<i class="la la-save"></i>
								<span>保 存</span>
							</span>
						</button>
						<button type="button" class="btn btn-metal m-btn m-btn--icon m-btn--wide" onclick="goback()">
							<span>
								<i class="fa flaticon-logout"></i>
								<span>返 回</span>
							</span>
						</button>
					</div>
					<div class="col m--align-right">
						<a href="javascript:resetAll('defaultForm')" class="btn btn-accent m-btn m-btn--icon m-btn--wide">
							<span>
								<i class="fa fa-repeat"></i>
								<span>重 置</span>
							</span>
						</a>
					</div>
				</div>
			</div>
		</div>
	</form>
</div>
</body>
<div th:include="include/includeboot :: footer"></div>
<script type="text/javascript" src="../../../../view/xt-script/xt-script-update.js"></script>
</html>
